#include "settingtypes.h"

#include <QtCore/QMetaType>

using namespace core;

QHash<QString, int> SettingTypes::types = QHash<QString, int>();

void SettingTypes::init()
{
    types["Range"] = qRegisterMetaType<Range>("Range");
}

int SettingTypes::typeId(const QString& name)
{
    int ret = -1;

    if (types.contains(name))
    {
        ret = types[name];
    }

    return ret;
}
